<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: allen.qiang
// +----------------------------------------------------------------------

/**
 * 后台公共smarty
 * @package  module/smarty
 * @author   allen.qiang
 * @version 1.0
 */

quanli_require('module/base/common/quanliLog.class.php');

function backend_smarty() {

    global $G_SHOP;

    $ebsig_comm = array(); //系统数组

    /**
     * 网站基本信息网站基本信息
     */
    $ebsig_comm['website'] = array(
        'name' => G_SHOP_NAME,                                     //商城名称
        'logo' => G_WEBSITE_LOGO_LINK,                              //logo地址
        'domain_name' => G_WEBSITE_DOMAINNAME,                     //域名
        'goods_img_root' => G_IMAGE_URL,                          //商品图片目录
        'template_img_root' => G_THEME_IMAGE_URL,                //模板图片目录
        'cookie_domain' => G_COOKIE_DOMAIN,                        //cookie域名
        'template_file_root' => G_THEME_URL,                       //模板文件目录
        'lodding_img_link' => G_THEME_IMAGE_URL . '/comm/lazyloading.gif', //前台图片等待加载1
        'lodding2_img_link' => G_THEME_IMAGE_URL . '/comm/lazyloading2.gif' //前台图片等待加载2
    );

    $ebsig_comm['global_set'] = array(
        'baidu_map_ak' => G_BAIDU_AK
    );

    $G_SHOP->smarty->assign_by_ref('ebsig_comm', $ebsig_comm);

}

backend_smarty();